package cn.itrip.auth.service;

import cn.itrip.auth.exception.TokenDateException;
import cn.itrip.beans.pojo.ItripUser;
import cn.itrip.beans.vo.ItripTokenVO;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.text.ParseException;

public interface TokenService {
    String getToken(String userAgent, ItripUser itripUser);

    ItripTokenVO reToken(String token, String userAgent) throws ParseException, TokenDateException, JsonProcessingException;
}
